package com.fx.device.controller.activit;


import com.fx.device.common.util.ReturnMessage;
import com.fx.device.service.activit.ProcessUserService;
import com.fx.device.vo.activit.ProUser;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;

@RestController
@RequestMapping("/proUser")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))

public class ProUserController {



    final private ProcessUserService processUserService;

    //获取用户
    @GetMapping(value = "/getUsers")
    public ReturnMessage<Object> getUsers() {

        return processUserService.getUsers();

    }


    @RequestMapping(value = "/saveUser", method = RequestMethod.POST)
    public ReturnMessage<Object> saveUser(@RequestBody ProUser proUser) {




        return processUserService.saveUser(proUser);
    }




}
